
#ifndef __SQLITE_INTERFACE_H
#define __SQLITE_INTERFACE_H

#include <vector>
#include <sqlite3.h>

class SQLiteInterface
{
   public:
      SQLiteInterface();
      ~SQLiteInterface();
      static void SQLiteErrorMessage(sqlite3 *sdb, const char *message, const char *fpretty, int line);
};

#ifdef __WIN32__
#define CheckSQLiteError(message, db) SQLiteInterface::SQLiteErrorMessage(db, (const char *)message, __FILE__, __LINE__)
#else
#define CheckSQLiteError(message, db) SQLiteInterface::SQLiteErrorMessage(db, (const char *)message, __PRETTY_FUNCTION__, __LINE__)
#endif

#endif
